// For license information, see `https://kiwi.collegeboard.org/cb-global/f740f8a20d94/74f95571d83d/d094bc42ea3d/RCaeaed14f74874e88b30ba2e8ec3d2ed1-source.js`. _satellite.__registerScript('https://kiwi.collegeboard.org/cb-global/f740f8a20d94/74f95571d83d/d094bc42ea3d/RCaeaed14f74874e88b30ba2e8ec3d2ed1-source.min.js', "const loggerKey=\"CDL Push - Legal - Tags Consent\",payload=event.detail||{};try{_satellite.logger.info(`${loggerKey} > payload: `,payload);const e=_satellite.getVar(\"CDL - Legal - Tags Consent - Performance\")||!1,o=e?\"y\":\"n\",t=()=>alloy(\"setConsent\",{consent:[{standard:\"Adobe\",version:\"2.0\",value:{collect:{val:o},metadata:{time:(new Date).toISOString()}}}]}),a=()=>new Promise((e=>{_satellite.getVar(\"Data Layer Push - Identity - Alloy\"),e()})),l=async()=>{if(_satellite.logger.info(`${loggerKey} > doTargetReload() was called!`),kiwi.flags?._pageReloadInProgress)_satellite.logger.info(`${loggerKey} > page reload already in progress, skipping`);else if(kiwi.flags?._targetDoReloadAfterConsent){kiwi.flags._pageReloadInProgress=!0,kiwi.flags._targetDoReloadAfterConsent=!1,_satellite.logger.info(`${loggerKey} > waiting for analytics sendEvent to complete before reload`);try{const e=`Page Tracking Protection (${loggerKey})`,o={useSnap:!0,snap:{events:{link:{linkTrackHit:{webInteractionName:e,pathingHit:e}}}}},t=alloy(\"sendEvent\",{type:\"web.webinteraction.linkClicks\",documentUnloading:!0,xdm:_satellite.getVar(\"XDM - CJA - 00 Global - On Every Link Track Hit\",o)});await Promise.race([t,new Promise((e=>setTimeout(e,kiwiEddlHelper.get(\"cdl.tech.pageConfig.tech.failOverTrackingTmoMs\"))))]),_satellite.logger.info(`${loggerKey} > analytics sendEvent completed, calling window.location.reload()`),window.location.reload()}catch(e){_satellite.logger.error(`${loggerKey} > error waiting for analytics, proceeding with reload:`,e),window.location.reload()}}else _satellite.logger.info(`${loggerKey} > kiwi.flags._targetDoReloadAfterConsent is FALSE`)},n=()=>{if(window.ub?.consent?.update){const o={consistency:Boolean(e),preferences:Boolean(e),statistics:Boolean(e),marketing:!1};window.ub.consent.update(o)}},i=async()=>{await t(),await a(),n(),l()};e?i():alloy(\"getLibraryInfo\").then((function(e){const o=e.libraryInfo?.configs?.defaultConsent||\"unknown\",t=\"pending\"===o,a=_satellite.cookie.get(\"OptanonAlertBoxClosed\");_satellite.logger.info(`${loggerKey} > findings: `,{otBannerClosed:a,alloyDefaultConsent:o}),a&&t&&i()}))}catch(e){_satellite.logger.error(`${loggerKey} > ERROR:`,e)}return!0;");